<?php
include('../config.php');

//接受传入的ID
$id = $_GET['id'];

//进行删除
$sql = "delete from shop where id=$id";

$res = mysql_query($sql);
if($res){
    echo json_encode(array(
        "code" =>200,
        "body" => array(
            "msg" => "删除成功"
        )));
}else{
    echo json_encode(array(
        "code" => 400,
        "body" => array(
            "msg" => "删除失败 请稍后再试"
        )
        ));
}
?>